package test.net.rpc;

import com.wan.net.rpc.service.RService;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * @author wwh
 * @date 2022/8/16 19:04
 */
@RService
public class Hello2Imp implements Hello2{
    @Override
    public String hello(List<String> str) {
        return "data:" + str.toString();
    }

    @Override
    public String zing(List<Integer> a, int[] b, String info) {
        return "data:" + a + "|" + Arrays.toString(b) + "|" + info;
    }

    @Override
    public String testMap(Map<String, Integer> map, int[] a) {
        return "data:" + map + Arrays.toString(a);
    }
}
